@echo off
chcp 65001
echo ========================================
echo 发布代码到Gitee
echo ========================================

echo 1. 检查Git状态...
git status

echo.
echo 2. 添加所有更改...
git add .

echo.
echo 3. 提交更改...
git commit -m "feat: implement log file preview functionality

- Add LogView component for log file selection and preview
- Add /logs/files and /logs/content API endpoints
- Support UTF-8 encoding and line count control
- Improve error handling and responsive design"

echo.
echo 4. 配置Gitee远程仓库...
git remote remove gitee 2>nul
git remote add gitee https://gitee.com/shenmk/lemon-process.git

echo.
echo 5. 推送到Gitee...
git push -u gitee master

echo.
echo ========================================
echo 发布完成！
echo ========================================
echo 请访问您的Gitee仓库查看代码
echo ========================================

pause
